<template>
  <div>
    <!-- 导航区 -->
    <ul>
      <li v-for="message in messageList">
        <router-link href="/message1" :to="`/home/message/detail/${message.id}/${message.title}`">{{message.title}}</router-link>
      </li>
    </ul>
    <!-- 展示区 -->
    <hr>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "Message",
  data() {
    return {
      messageList: [
        { id: "001", title: "消息001" },
        { id: "002", title: "消息002" },
        { id: "003", title: "消息003" },
      ],
    };
  },
};
</script>

<style scoped>
</style>